package com.example.blog.service;

import com.example.blog.mapper.UserInfoMapper;
import com.example.blog.model.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo selectUserInfoByName(String userName) {
        return userInfoMapper.selectUserInfoByName(userName);
    }

    public UserInfo selectUserInfoById(Integer id) {
        return userInfoMapper.selectUserInfoById(id);
    }

    public Integer updatePssword(String encrypt, Integer id) {
        return userInfoMapper.updatePassword(encrypt, id);
    }
}
